package com.yixia.common.filter;

import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;

/**
 * 排除JSON铭感数据拦截器
 * @author: 依梦
 * @Date 2023/8/3
 */
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter {

    /*构造方法*/
    public PropertyPreExcludeFilter()
    {
    }

    /**
     * 添加排除项
     * @param filters
     * @return
     */
    public PropertyPreExcludeFilter addExcludes(String... filters)
    {
        for (int i = 0; i < filters.length; i++)
        {
            this.getExcludes().add(filters[i]);
        }
        return this;
    }
}
